<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>直营商户驳回查询</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href="<s:url value="/css/common.css"/>"/>
    <!-- 当前页面样式 END -->
    <script type="text/javascript" src="<c:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type="text/javascript">
	$(document).ready(function() {
		$("#completeBtn").click(
				function() {
					var dd = $("input[name=multi_sel]:checked");
					if(dd.length != 1){
						alert("只能选择一个商户！");
						return false;
					}
					var accountNo = dd.val();
					if(dd.length == 0){
						alert("请选择商户");
						return false;
					}else{
						$("#dirctMerejListForm").attr("action","<%=basePath%>/mer/directMerRejComplete.ct?merinfo.id="+accountNo);
						$("#dirctMerejListForm").submit();
				}
		});
	});
	
	function queryForm(obj){
		$("#"+obj.id).attr("disabled",true);
		$("#dirctMerejListForm").attr("action","<%=basePath%>/mer/directMerRejectList.ct");
		$("#dirctMerejListForm").submit();
		
	}
</script>
</head>
<body>
<s:form id="dirctMerejListForm" action="/mer/directMerRejectList.ct" method="post" theme="simple">
<input type="hidden" id="opid" value="${request.opid}" />
<table class="tb">
    <tbody>
        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
        </tr>

        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h3">直营商户驳回查询</div></td>
        </tr>
 
       <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.merchantNo" />
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">商户简称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.merchantName" maxlength="20"/>
                </label>
            </td>
        </tr>

        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">营业名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.merBrName" maxlength="25"/>
                </label>
            </td>
            <td align="right" class="tb-td">入网时间：</td>
			<td class="tb-td" >
				 <label class="tb-input-normal">
					<s:textfield    onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});"    name="searchCondition.minDate"  />
				 </label>
				-
				 <label class="tb-input-normal">
					<s:textfield  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});"   name="searchCondition.maxDate"   />
				</label>
			</td>
        </tr>
		<tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">法人名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.certifName" maxlength="25"/>
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">法人身份证：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.cardNo" maxlength="20"/>
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">业务联系人名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.contactName" maxlength="25"/>
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">业务联系人手机号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.phone" maxlength="15" />
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">结算账号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.accountNo" maxlength="25"/>
               	</label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">结算账户姓名：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield  name="searchCondition.accountName" maxlength="20" />
                </label>
            </td>
        </tr>
        <tr class="tb-line">
            <td class="tb-td line-submit" align="right" colspan="4">
                <label class="tb-input-submit">
                    <input type="button" value="查询" id="queryBtn" onclick='queryForm(this)'/>
                </label>
                <label class="tb-input-submit">
                    <input type="reset" value="取消"/>
                </label>
                <label class="tb-input-submit">
                    <input id="completeBtn" type="button"  value="完善信息" />
                </label>
            </td>
        </tr>
         <tr class="tb-line">
            <td class="tb-td line-submit" align="center" colspan="4">
                 <font color="red">
                 	<s:actionmessage/><s:actionerror/>
                 </font>
            </td>
        </tr>
        <s:if test="#request.searchRsList != null && #request.searchRsList.size>0 ">
			<tr class="tb-line">
				<td class="tb-td paging"  align="left" colspan="4"> 
					 	<page:pageCount max_pages="11" totalPage="${requestScope.totalPage}"
						currentPage="${requestScope.currentPage}"
						action="${rootPath}/mer/directMerRejectList.ct?currentPage=" />

				</td>
			</tr>
		</s:if>
    </tbody>
</table>
</s:form>
<div class="big-tb">
    <table class="tb" style="width: 150%;">
        <thead>
            <tr class="tb-line">
                <th class="tb-th" colspan="20">商户基本信息列表</th>
            </tr>
            <tr class="tb-line bg-gray">
                <th class="tb-th">选择</th>
				<th class="tb-th">商户号</th>
				<th class="tb-th">商户简称</th>
				<th class="tb-th">营业名称</th>
				<th class="tb-th">结算方式</th>
				<th class="tb-th">商户类别</th>
				<th class="tb-th">所属机构</th>
				<th class="tb-th">所属分公司</th>
				<!-- <th class="tb-th">所属代理商</th> -->
				<th class="tb-th">直属代理商</th>
				<th class="tb-th">状态</th>
				<th class="tb-th">业务联系人</th>
				<th class="tb-th">业务联系人电话</th>
				<th class="tb-th">法人</th>
				<th class="tb-th">法人证件号</th>
				<th class="tb-th">结算银行</th>
				<th class="tb-th">联行号</th>
				<th class="tb-th">结算银行账号名称</th>
				<th class="tb-th">结算银行账号</th>
				<th class="tb-th">商户地址</th>
            </tr>
        </thead>
        <tbody>
			<s:iterator value="#request.searchRsList" status="stat" id="sh">
				<tr class="tb-line" >
					<td align="center" class="tb-td">
					<s:if test="#request.opid==#sh.recUpdOpr||#request.opid==#sh.exct1||#request.flag1==#sh.exct1">
						<s:checkboxlist name="multi_sel"  list="#{#sh.mid:''}" theme="simple" />
				    </s:if>
				    <s:else>
				        <s:checkboxlist name="multi_sel" disabled="true" list="#{#sh.mid:''}" theme="simple" />
					</s:else>	
				    </td>
					<td class="tb-td">
						<s:property value="#sh.mid"/> 
					</td>
					<td class="tb-td"><s:property value="#sh.merName"/></td>
			        <td class="tb-td"><s:property value="#sh.merBrName"/></td>
			        <td class="tb-td">
			        	<s:iterator value="#sh.merCycle" var="c" status="st">
			        		    <s:property value="#c" />
			        	</s:iterator>
			        </td>
			        <td class="tb-td"> 
			        	
			        	<s:if test="#sh.nationCd==\"0\"">个体户</s:if>
			        	<s:if test="#sh.nationCd==\"1\"">企业</s:if>
			        </td>
			        <td class="tb-td"><s:property value="#sh.merKind"/> </td>
			        <td class="tb-td">
	        				<s:if test="#sh.companyName ==null || #sh.companyName==''">暂无</s:if>
	        				<s:else><s:property value="#sh.companyName"/></s:else>
			         </td>
			        <%--  <td class="tb-td">
			         	<s:if test="#sh.oneAgentName ==null || #sh.oneAgentName==''">暂无</s:if>
	        			<s:else><s:property value="#sh.oneAgentName"/></s:else>
			         </td> --%>
			         <td class="tb-td">
			         	<s:if test="#sh.agentId ==null || #sh.agentId==''">暂无</s:if>
	        			<s:else><s:property value="#sh.agentId"/></s:else>
			         </td>
			        <td class="tb-td"><s:property value="#sh.flag"/> </td>
			        <td class="tb-td"><s:property value="#sh.perName"/></td>
			        <td class="tb-td"><s:property value="#sh.perPhone"/></td>
			        <td class="tb-td"><s:property value="#sh.interContact"/></td>
			        <td class="tb-td"><s:property value="#sh.cardNo"/></td>
			        <td class="tb-td"><s:property value="#sh.amount1"/></td>
			        <td class="tb-td"><s:property value="#sh.amount2"/></td>
			        <td class="tb-td"><s:property value="#sh.rsvl"/></td>
			        <td class="tb-td"><s:property value="#sh.rsvl3"/></td>
			        <td class="tb-td"><s:property value="#sh.addr"/></td>
			      </tr>
			</s:iterator>	
        </tbody>
    </table>
   
</div>
 <s:if test="#request.msg !=null">
		<script language="javascript">
			alert("${request.msg}");
		</script>
	</s:if>
</body>
</html>